import 'package:flutter/material.dart';

import 'color_constant.dart';

class LiveServerWidget extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Container(
        margin: const EdgeInsets.only(left: 12, right: 12,top: 8),
        decoration:
        BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(8)),color: ColorConstant.white,),
      child: ListView.builder(
          itemCount: 1,
          shrinkWrap: true,
          physics: NeverScrollableScrollPhysics(),
          itemBuilder: (context,index) {
            return Container(
              height: 270,
              margin: const EdgeInsets.only(top: 8),
              child: Column(
                children: [
                  Container(
                    height: 30,
                    alignment: Alignment.centerLeft,
                    margin: const EdgeInsets.only(left: 8),
                    child: Text(index == 0?"生活服务":"我要霸屏"),
                  ),
                  Expanded(child: Container(
                    margin: const EdgeInsets.only(left: 5),
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Container(
                          height: 120,
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.start,
                            children: [
                              Expanded(
                                  flex: 2,
                                  child: Container(
                                      height: 120,
                                      margin: const EdgeInsets.only(left: 3),
                                      child: Image.network("https://consumerapp-1251779293.image.myqcloud.com/discovery/202211/falpo7sr1kc.png")
                                  )),
                              Expanded(
                                  flex: 1,
                                  child: Container(
                                      height: 120,
                                      margin: const EdgeInsets.only(left: 5,right: 3),
                                      child: Image.network("https://consumerapp-1251779293.image.myqcloud.com/discovery/202211/1xqo3z6eo3s.png")
                                  ))
                            ],
                          ),
                        ),
                        Container(
                          height: 120,
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.start,
                            children: [
                              Expanded(
                                  flex: 2,
                                  child: Container(
                                      height: 120,
                                      margin: const EdgeInsets.only(left: 3),
                                      child: Image.network("https://consumerapp-1251779293.image.myqcloud.com/discovery/202211/falpo7sr1kc.png")
                                  )),
                              Expanded(
                                  flex: 1,
                                  child: Container(
                                      height: 120,
                                      margin: const EdgeInsets.only(left: 5,right: 3),
                                      child: Image.network("https://consumerapp-1251779293.image.myqcloud.com/discovery/202211/1xqo3z6eo3s.png")
                                  ))
                            ],
                          ),
                        ),
                      ],
                    ),
                  ))
                ],
              ),
            );
          }
      ),
    );
  }

}